package com.chengduservice.service;

import com.chengduservice.common.Page;
import com.chengduservice.common.QueryPage;
import com.chengduservice.entity.News;

import java.util.List;
import java.util.Map;

/**
 * create by yongli on 2020-04-16 21:54
 */

public interface NewsService {

    Integer batchInsertNews(List<News> newsList);

    Integer insertOneNews(News news);

    List<News> selectByKeyWord(String keyWord);

    List<News> batchSelect(Map<String, String> map);

    Page<News> listPage(QueryPage<News> queryPage);

    long count();
}
